interface InterfaceCollection {
    // 索引签名
    [index: number]: string
    length: number
}

const names: string[] = ["马云", "马化腾", "马宝国"]
console.log(names[0], names[1], names[2])


function iteratorCollection(collection: InterfaceCollection): void {
    console.log(collection[0])
}

const tuple: [string, string, string] = ["陶品奇", "七品套", "aaa"]
iteratorCollection(tuple)